import axios from '@/axios'

/* 任务分组 */
// 查询日报页面的详情
export function getTcWorkingList(data) {
  return axios({
    url: '/task/tcTaskInfo/getTcWorkingList',
    method: 'post',
    data,
  })
}
// 查询日报页面的详情
export function addTcDailyReport(data) {
  return axios({
    url: '/task/tcDailyReport',
    method: 'post',
    data,
  })
}
// 查询日报记录
export function getTcWorkingRecord(data) {
  return axios({
    url: '/task/tcWorkingRecord/list',
    method: 'post',
    data,
  })
}
// 查询已提交日报详情
export function getTcWorkingRecordInfo(data) {
  return axios({
    url: '/task/tcWorkingRecord/tcWorkingRecordInfo',
    method: 'post',
    data,
  })
}
// 查询当前日报
export function getTcDailyReportList({ params, data }) {
  return axios({
    url: '/task/tcDailyReport/listAll',
    method: 'post',
    params,
    data,
  })
}
// 日报登记数量统计
export function getTcDailyReportCount(data) {
  return axios({
    url: '/task/tcDailyReport/tcDailyReportCount',
    method: 'post',
    data,
  })
}
// 日报登记数量统计
export function getTcDailyReport(id) {
  return axios({
    url: `/task/tcDailyReport/${id}`,
    method: 'get',
  })
}
// 日报登记数量统计
export function getTcDailyReportNoSubmit(data) {
  return axios({
    url: `/task/tcDailyReport/tcDailyReportNoSubmit`,
    method: 'post',
    data,
  })
}
// 审阅提交
export function addTcDailyReply(data) {
  return axios({
    url: `/task/tcDailyReply`,
    method: 'post',
    data,
  })
}
